//
//  HWMallcheCollectionViewCell.m
//  HWanGame
//
//  Created by 陈道斌 on 2020/10/26.
//  Copyright © 2020 Chendaobin. All rights reserved.
//

#import "HWMallcheCollectionViewCell.h"

@implementation HWMallcheCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.jifenbuzuBut.layer.cornerRadius = 6;
    self.jifenbuzuBut.layer.masksToBounds = YES;
    
    
    self.beijiUiview.backgroundColor = RGB(247, 247, 247);
    self.beijiUiview.layer.cornerRadius =  6;
    self.beijiUiview.layer.masksToBounds = YES;
    
    
    
     
}


-(void)setDataModel:(HWShopMallModel *)dataModel {
    
    _dataModel =  dataModel ;
      //  dataModel.goods_thumb
    
    NSString *str =    [NSString stringWithFormat:@"%@",dataModel.goods_thumb];
    self.tupianImageView.backgroundColor = RGB(247, 247, 247);
    
    [self.tupianImageView sd_setImageWithURL:[NSURL URLWithString:str] placeholderImage:nil];
    self.mingchengLabel.text = [NSString stringWithFormat:@"%@",dataModel.goods_name];
    self.jifenLabel.text = [NSString stringWithFormat:@"%@",dataModel.market_price];
    
   
    
    
    
    
    
    
}
@end
